// import Result from "../../utils/Result";

export default function (app)  {
    return async (ctx, next) => {
        ctx.socket.emit('res', 'connected!');
        await next();
        // execute when disconnect.
        console.log('disconnection!',app);
    };
};